package com.orphan.audit.service.impl;

import com.orphan.audit.dao.UserDetailMapper;
import com.orphan.audit.po.UserDetail;
import com.orphan.audit.po.UserFreeze;
import com.orphan.audit.dao.UserFreezeMapper;
import com.orphan.audit.service.IUserFreezeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@Service
public class UserFreezeServiceImpl extends ServiceImpl<UserFreezeMapper, UserFreeze> implements IUserFreezeService {

    @Autowired
    private UserFreezeMapper userFreezeMapper;

    @Override
    public List<UserFreeze> getAll() {
        List<UserFreeze> userFreeze = userFreezeMapper.getAll();
        return userFreeze;
    }


    @Override
    public boolean update(UserFreeze userFreeze) {
        int i = userFreezeMapper.update(userFreeze);
        return i > 0? true :false;
    }
}
